package cn.east196.xfx;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javafx.stage.Stage;

public class StagePool {

  static Map<String, Stage> stageMap = new ConcurrentHashMap<String,Stage>();

  public static void put(String key, Stage stage) {
    stageMap.put(key, stage);
  }

  public static Stage get(String key) {
    return stageMap.get(key);
  }

}
